package Chapter5;

class MThread extends Thread{
	public MThread(String name) {
		super(name);
	}
	public void run() {
		System.out.println(this.getName());
	}
}

public class Work1 {
	public static void main(String[] args) {
		new MThread("Thread1").start();
		new MThread("Thread2").start();
	}

}
